<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <title>购物车示例</title>
    <link href="style.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<div id="app" v-cloak>
    <template v-if="list.length">
        <table>
            <thread>
                <tr>
                    <th></th>
                    <th>商品名称</th>
                    <th>商品单价</th>
                    <th>购买数量</th>
                    <th>操作</th>
                </tr>
            </thread>
            <tbody>
            </tbody>
        </table>
        <div>总价：￥{{totalPrice}}</div>
    </template>
    <div v-else>购物车为空</div>
</div>
<script charset="utf-8" src="../js/vue.min.js" type="text/javascript"></script>
<script charset="utf-8" src="index.js" type="text/javascript"></script>
</body>

</html>
